package com.le.dub.service;

import com.le.dub.mobile.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.le.dub.mobile.bo.UserRegisterBO;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author guole
 * @since 2024-10-09
 */
public interface IUserService extends IService<User> {
    /**
     * 校验是否可以 使用语音服务
     * @param userId
     * @param characterNum
     */
    void checkUserVoice(Long userId,Integer characterNum);
    void deductUserEnergy(Long userId,Integer characterNum);
    String  register( UserRegisterBO userRegisterBO);
    void  sendCaptcha(String phone,Integer type);
    String setToken(Long userId);
    String login(String phone,String password);
}
